package com.tencreat.mapper.pt;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tencreat.domain.pt.MallPtUsers;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

/**
 * 拼团详情Mapper接口
 *
 * @author tencreat
 * @date 2021-11-08
 */
public interface MallPtUsersMapper extends BaseMapper<MallPtUsers> {

    Page<Map<String, Object>> lotteryUsersList(@Param("page") Page<Map<String, Object>> page, @Param("ptId") Integer ptId, @Param("uuid") Long uuid,
                                               @Param("phone") String phone, @Param("type") Integer type);

    Page<Map<String, Object>> ptHistoricalRecord(@Param("page") Page<Map<String, Object>> page, @Param("goodsId") Integer goodsId, @Param("time") Date time, @Param("period") Integer period);

    Page<Map<String, Object>> ptDetail(@Param("page") Page<Map<String, Object>> page, @Param("ptId") Integer ptId);

    MallPtUsers selectIsDel(String orderSn);

    Map<String, Object> lotteryDetailInfo(Integer ptId);
}
